
ALter table "PharmacyProduct" add column if not exists "MedicationId" text;
--------------------------

Create table if not exists "ModuleDepartmentDetail"("ModuleDepartmentDetailId" serial primary key,"ModuleName" text,
									 "DepartmentId" int references "Department"("DepartmentId"),
									  "Active" boolean default true,
								  "CreatedBy" int references "Account"("AccountId"),"CreatedDate" timestamp without time zone,
								  "ModifiedBy" int references "Account"("AccountId"),"ModifiedDate" timestamp without time zone
									 );
									 
Create table  if not exists "ModuleDepartmentUser"("ModuleDepartmentUserId" serial primary key,"ModuleDepartmentDetailId" int references "ModuleDepartmentDetail"("ModuleDepartmentDetailId"),
								   "AccountId" int references "Account"("AccountId"));

--------------------


Alter table "ModuleDepartmentDetail" add column "LocationId" int references "Location"("LocationId");

-----------------
